<?php

	require_once( 'bootstrap.php' );
	$youtubeClient = new Youtube_Client();
	if( $youtubeClient->getUploadedVideo() ) {
		describe( $youtubeClient->upload( 'Jackie Chan talks about Bruce Lee', 'See what Jacie Chan says about Bruce Lee', 'Autos', 'jackie chan, bruce lee, kung fu', '31.1  77.2' ) );
	} else {
		echo '<html><head><script type="text/javascript" src="upload.js"></script></head><body>' . $youtubeClient->showUploadUI() . '</body></html>';
	}